package cn.ulyer.common.security.authority;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;

import javax.servlet.http.HttpServletRequest;

public interface AuthorityHandlerStrategy {


    default boolean handler(HttpServletRequest request, Authentication authentication, GrantedAuthority grantedAuthority) throws Exception {
        return false;
    }


    /**
     * 当前handler 的处理蹙额略
     *
     * @return
     */
    String strategy();


}
